package xyz.renyumeng.xkm.config.feign;

import feign.Feign;
import feign.Request;
import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author renyumeng
 * @date Created in 17:02 2023/7/1
 */

@Configuration
public class FeignConfig {
    @Bean
    public Feign.Builder feignBuilder() {
        return new Feign.Builder()
                .options(new Request.Options(600000, 600000))
                .retryer(new Retryer.Default(5000, 5000, 3));
    }
}
